<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../../ohter/js库/mock.js"></script>
    <script src="../../ohter/js库/vue.js"></script>
    <title>calc函数</title>
    <style>
        /* 
        calc()声明属性值时执行计算 + - * /
        width:calc(100%-80px);
        */
        div.c{
            width: 300px;
            height: 300px;
            background-color: pink;
        }
        div.son {
            height: 50%;
            width: calc(100% - 60px);
            background-color: green;
        }
    </style>
</head>

<body>
    <div id="root">
        <div class="c">
            <div class="son"></div>
        </div>
    </div>
</body>
<script>
    new Vue({
        el: '#root',
        data() {
            return {
            }
        },
    })
</script>

</html>